class CategoryList {
  final String create_time;
  final String update_time;
  final int id;
  final String name;
  final String desc;
  final String cover;
  final int state;
  // ignore: non_constant_identifier_names
  final int category_id;
  // ignore: non_constant_identifier_names
  final int cook_type;
  // ignore: non_constant_identifier_names
  final int favorite_count;

  CategoryList(
      {this.create_time,
      this.update_time,
      this.id,
      this.name,
      this.desc,
      this.cover,
      this.state,
      this.cook_type,
      this.favorite_count,
      this.category_id});

  factory CategoryList.fromJson(Map<String, dynamic> json) {
    return CategoryList(
        create_time: json['create_time'] as String,
        cover: json['cover'] as String,
        id: json['id'] as int,
        desc: json['desc'] as String,
        name: json['name'] as String,
        category_id: json['category_id'] as int,
        cook_type: json['cook_type'] as int,
        state: json['state'] as int,
        favorite_count: json['favorite_count'] as int,
        update_time: json['update_time'] as String);
  }
}
